/**
* 表格组件数据及其样式回调
*/


import { reactive } from 'vue'

export default function () {
	let tableData = reactive({
		list: [],
	})
	// 表格行颜色设置
	const cellStyle = ({row, column, rowIndex, columnIndex}) =>{
        if(rowIndex == 0) {
          return{
            color:'#fff',
			background: '#F4B084'
          }
        }
      }
	// 表格头部颜色设置
	const cellHeaderStyle = () => {
          return{
            color:'#fff',
			background: '#ED7D31',
			fontSize:'28rpx'
          }
	}
	return {
		tableData,
		cellStyle,
		cellHeaderStyle
	}
}